package com.license.logic.alimentation;

public class Food {
	private String name;
	private int portions;
	private FoodCharacteristics characteristics;
	
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public FoodCharacteristics getCharacteristics() {
		return characteristics;
	}
	public void setCharacteristics(FoodCharacteristics characteristics) {
		this.characteristics = characteristics;
	}
	public int getPortions() {
		return portions;
	}
	public void setPortions(int portions) {
		this.portions = portions;
	}
	
	public double getKaloriesGain(){
		return this.portions * this.characteristics.gramsPerPortion*this.characteristics.kalory;
	}
}
